﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCGM.MedicalWisdom.Model.ViewModels.PatientsDTO
{
    /// <summary>
    /// 患者用户注册DTO
    /// </summary>
    public class PatientUserAddDTO
    {
        /// <summary>
        /// Desc:用户名称
        /// Default:
        /// Nullable:False
        /// </summary>
        [Required(ErrorMessage = "名称不能为空")]
        public string UserName { get; set; }
        /// <summary>
        /// Desc:账号
        /// Default:
        /// Nullable:False
        /// </summary>
        //public string Accountnumber { get; set; }
        /// <summary>
        /// Desc:密码
        /// Default:
        /// Nullable:False
        /// </summary>
        [Required(ErrorMessage = "密码不能为空")]
        public string Pwd { get; set; }
        /// <summary>
        /// Desc:手机号
        /// Default:
        /// Nullable:False
        /// </summary>
        [Phone(ErrorMessage = "电话格式不正确"), Required(ErrorMessage = "手机号不能为空")]
        public string Phone { get; set; }
        /// <summary>
        /// Desc:验证码
        /// Default:
        /// Nullable:False
        /// </summary>
        [Required(ErrorMessage = "验证码不能为空")]
        public string Code { get; set; }
    }
}
